﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SelectMapPage.ascx.cs" Inherits="IDotNet.MapLibs.Web.Pages.SelectMapPage" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>在地图上选择点</title>
</head>
<body>
    <style type="text/css">
        html, body, #allmap {
            position: relative;
            width: 100%;
            height: 100%;
            margin: 0;
            padding: 0;
        }
        /*#allmap {
        height: 500px;
        width: 500px;
    }*/

        .shopInfo {
            font-family: "微软雅黑";
            font-size: 12px;
        }

        .shopBottom {
            text-align: center;
        }

            .shopBottom a {
                color: blue;
            }

        #mapTipMsg {
            position: absolute;
            left: 0;
            top: 40%;
            width: 100%;
            text-align: center;
            display: none;
        }

            #mapTipMsg b {
                padding: 10px;
                background-color: #444;
                color: #fff;
                font-weight: bolder;
            }
    </style>
    <div id="allmap"></div>

    <div id="mapTipMsg"><b>加载中。。。</b></div>

    <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=<%:MapAk %>"></script>
    <link href="content/Css/BMapExtensions.css" rel="stylesheet" type="text/css" />
    <script src="content/Js/BMapExtensions.js?t=2015.12.09" type="text/javascript"></script>
    <!--[if lt IE 8]>
    <script src="content/js/json2.min.js"></script>
    <![endif]-->
    <script src="content/Js/jquery.min.js"></script>
    <script src="content/js/MapLibs.js"></script>
    <script src="content/js/MapCommon.js"></script>
    <script src="content/Js/selectShop.js?t=2016.07.19.123"></script>
    <%--<script src="//js.lzlcdn.com/js/lzlLogDebug.v2.min.js"></script>--%>
    <script>
        /*
        tag:string,(非必须)
        msg:object
        例子：
        WebDebug('test');
        WebDebug('debug',{q:1});
        WebDebug({q:1});
        */
        function WebDebug(tag, msg) {
            if (window.lzlLogDebug && typeof window.lzlLogDebug.debug == 'function') {
                window.lzlLogDebug.debug.apply(this, arguments);
            }
        }
        onerror = function () {
            WebDebug(arguments);
        };
    </script>
    <script>
        var selectMapReqJson = <%=selectMapReqJson%>;
    </script>
    <script type="text/javascript">
        if (!/^[\d\.\:]+$/.test(location.host)) {
            document.domain = location.host.match(/(\w+\.\w+)(:|$)/)[1];
        }
        $(function() {
            try {
                selectShopMapApi.init(selectMapReqJson);
            } catch (e) {
                alert('出错了！' + e);
            }
        });
    </script>
</body>
</html>
